{% extends "employee/employee_base.html"%}
{% block currentPath %}
 >> <a href="/employee/users/">Users</a> >> {{t_user.name}}   
{% endblock %}

{% block content %}
    <div id="notice"><font color="blue">{{message}}</font><font>{{error}}</font></div>
    <h3>User Account</h3>
    <form action="" method="post">
    <table>
        <tr><th>Username:</th><td>{{t_user.username}}</td></tr>
        <tr><th>First name:</th><td>{{t_user.first_name}}</td></tr>
        <tr><th>Last name:</th><td>{{t_user.last_name}}</td></tr>
        <tr><th>Email:</th><td>{{t_user.email}}</td></tr>
        <tr><th>Roles:</th><td>{% if t_user.is_staff %}Staff{% if t_user.is_superuser %}, Admin {% endif %}{% else %}Normal user{% endif %}</td></tr>
        <tr><th>Status:</th><td>{{form.active}} active</td></tr>
        <tr><th>Last login:</th><td>{{t_user.last_login}}</td></tr>
        <tr><th>Register time:</th><td>{{t_user.date_joined}}</td></tr>
        <tr><td colspan=2 align="center"><input type="submit" value="Save"/></td></tr>
    </table>
    </form>
{% endblock %}